#pragma once
#ifndef _EXCEL_UTILS_H_
#define _EXCEL_UTILS_H_
#ifdef WIN32
#pragma execution_character_set("utf-8")
#endif // WIN32

#include <QTableWidget>
#include <QFile>
#include <QTextDocument>
#include <QTableWidget>
#include <xlsxdocument.h>
#include <xlsxcellrange.h>
#include "common.h"


/// <summary>
/// Excel处理工具
/// </summary>
class ExcelUtils {

public:

	/// <summary>
	/// 导出检测数据
	/// </summary>
	/// <param name="dataList">检测记录</param>
	/// <param name="fileName">导出文件名</param>
	static void saveExcel(QList<DaoModel::TestData>& dataList, QString fileName);

	//static void saveExcel(QTableWidget* table, QString& tester, QString& brand, QString& schedule, QString& testNum, QString& testTime);

};


#endif